home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / db / esm-3.1 / esm-3 / usr / local / sm / src / include / bt_extfuncs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-05  |  3.1 KB  |  84 lines

  1. #ifndef _BT_EXTFUNCS_H_
  2. #define _BT_EXTFUNCS_H_
  3. /*
  4.  *   $RCSfile: bt_extfuncs.h,v $  
  5.  *   $Revision: 1.1.1.1 $  
  6.  *   $Date: 1996/05/04 21:55:07 $      
  7.  */ 
  8. /**********************************************************************
  9. * EXODUS Database Toolkit Software
  10. * Copyright (c) 1991 Computer Sciences Department, University of
  11. *                    Wisconsin -- Madison
  12. * All Rights Reserved.
  13. *
  14. * Permission to use, copy, modify and distribute this software and its
  15. * documentation is hereby granted, provided that both the copyright
  16. * notice and this permission notice appear in all copies of the
  17. * software, derivative works or modified versions, and any portions
  18. * thereof, and that both notices appear in supporting documentation.
  19. *
  20. * THE COMPUTER SCIENCES DEPARTMENT OF THE UNIVERSITY OF WISCONSIN --
  21. * MADISON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION.  
  22. * THE DEPARTMENT DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  23. * WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  24. *
  25. * The EXODUS Project Group requests users of this software to return 
  26. * any improvements or extensions that they make to:
  27. *
  28. *   EXODUS Project Group 
  29. *     c/o David J. DeWitt and Michael J. Carey
  30. *   Computer Sciences Department
  31. *   University of Wisconsin -- Madison
  32. *   Madison, WI 53706
  33. *
  34. *     or exodus@cs.wisc.edu
  35. *
  36. * In addition, the EXODUS Project Group requests that users grant the 
  37. * Computer Sciences Department rights to redistribute these changes.
  38. **********************************************************************/
  39. #ifdef __cplusplus
  40. extern "C" {
  41.  
  42. extern bt_BulkLoad(TID tid, BUFGROUP* bufGroup, VOLID volid, FID& input, 
  43.                     int cnt, BOOL unique, SMDATATYPE type, 
  44.                     int elSize, PID& rootPid);
  45.  
  46. extern bt_InsertEntry(TID tid, const PID& rootPid, BUFGROUP* bufGroup,
  47.                         const void* newKey, int newKeyLen, int elSize, 
  48.                         const void* elem, int maxKeyLen, BOOL unique, 
  49.                         PFC compFunc, LSNOFFSET undoNxtLSN);
  50.  
  51. extern bt_RemoveEntry(TID tid, const PID& rootPid, BUFGROUP* bufGroup, 
  52.                         const void* doomedKey, int doomedKeyLen, 
  53.                         int elSize, const void* elem, int maxKeyLen, 
  54.                         BOOL unique, PFC compFunc, LSNOFFSET undoNxtLSN);
  55.  
  56. extern bt_DestroyBtree(TID tid, const PID& rootPid, BUFGROUP* bufGroup);
  57. extern bt_IsEmpty(TID tid, const PID& rootPid, BUFGROUP* bufGroup, BOOL* ret);
  58. #ifndef SERVER_MAKE
  59. extern bt_CreateBtree(TID tid, int volume, BUFGROUP* bufGroup,
  60.                                             PID& rootPid, SMDATATYPE type);
  61. extern bt_FetchInit(const PID& rootPid, BUFGROUP* bufGroup, 
  62.                         void* bound1, int bound1Len,
  63.                         int maxKeyLen, BT_CURSOR* cursor, 
  64.                         SMCOND condition, PFC compFunc);
  65.  
  66. extern bt_FetchNext(BT_CURSOR& cursor, BUFGROUP* bufGroup, void* bound2, 
  67.                         int bound2len, SMCOND condition, PFC compFunc, 
  68.                         void* valuePtr, TWO* lenPtr, 
  69.                         void* ret, BOOL& eof);
  70. #endif
  71.  
  72. #ifdef SERVER_MAKE
  73. extern bt_LogFormat(VOLREC* volRec, PID* pid, PAGEHASH* pHash);
  74. extern void redoBtreePageFormat(LOGRECORDHDR* record);
  75. #endif
  76.  
  77. extern void BT_PrintTree(const PID& rootPid, BUFGROUP* bufGroup);
  78. extern bt_CheckTree(const PID& rootPid, BUFGROUP* bufGroup);
  79.  
  80. }
  81. #endif
  82.  
  83. #endif /* _BT_EXTFUNCS_H_ */
  84.